import axios from '@/libs/api.request'

export const getList = info => {
  return axios.request({
    url: 'auth_rule/getList',
    data: info,
    method: 'post'
  })
}

export const add = info => {
  return axios.request({
    url: 'auth_rule/add',
    data: info,
    method: 'post'
  })
}
export const put = info => {
  return axios.request({
    url: 'auth_rule/edit',
    data: info,
    method: 'post'
  })
}
export const del = info => {
  return axios.request({
    url: 'auth_rule/delete',
    data: info,
    method: 'post'
  })
}

//状态切换  推荐
export const change = info => {
  return axios.request({
    url: 'auth_rule/status',
    data: info,
    method: 'post'
  })
}
